package com.gtq.uhome.util;


import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Date;

public class TimestampUtil extends Date {
    /**
     * 获取当前时间
     * @return
     */
    public static Timestamp TimestampTime(){
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String format = simpleDateFormat.format(new Date());
        return Timestamp.valueOf(format);
    }
}
